﻿using System.Collections.Generic;
using System.Linq;
using Wicresoft.RDW.Interface;
using Wicresoft.RDW.Model;
using Wicresoft.RDW.Utility;

namespace Wicresoft.RDW.Presentation
{
    public class ProductPresent : BasePresent<Product, IProduct>
    {
        //todo wangdi

        public static List<Lab> GetByLocationid(int locationid)
        {
            var lablist = LabPresent.GetList(g => g.LocationId == locationid);
            return lablist;
        }

        public static List<ProductPic> getProductPicByProductId(int productid)
        {
            var producpiclist = ProductPicPresent.GetList(g => g.ProductId == productid);
            return producpiclist;
        }
    }
}
